@extends('admin.layouts._menu')
@section('content')
    <a href="{{route('admin.permission.cache')}}">更新权限缓存</a>
    @foreach($modules as $module)
        @if($module['permission'])
            <div class="card small text-dark">
                <div class="card-header">
                    {{$module['name']}}
                </div>
                <div class="card-body">
                    <div class="row">
                        @foreach($module['permission'] as $permission)
                            <div class="col-4 mb-2">
                                {{$permission['title']}} ({{$permission['name']}})
                            </div>
                        @endforeach
                    </div>
                </div>
            </div>
        @endif
    @endforeach
@endsection
